import os

'''
windows 路径: output\\123.txt
linux 路径: output/123.txt
'''

file_path = os.path.join("output","123.txt")
print(f"file_path: {file_path}")
os.mkdir("output")
with open(file_path,"w") as fp:
    fp.write("hello world")